
<div id="edit_fotos">
 <span class="title"><strike>&nbsp; &nbsp;</strike> Photos de {$pdt.nom} <strike>&nbsp; &nbsp;</strike></span><br />
 
 Six photos au maximum par produit <br />
<span>Photo principale </span>{if ($fotos|@sizeof)>1}<span class="annexe">Photos annexes</span>{/if}

<table>

<tr >
	<td class="principale"><p class="image"><img src="{$foto_principal.listing}" width="80"></p></td>
	{foreach from=$pdt.photos item=foto}
	{if $foto_principal.id!=$foto.id}
		<td class="image"><img src="{$foto.listing}" class="delete_{$foto.id}" width="60"></td>
	{/if}
	{/foreach}
</tr>


<tr>
	<td class="tprincipale"><a href="javascript:;" class="select_photo">Modifier la photo principale</a></td>
	{foreach from=$fotos item=foto}
	{if $foto_principal.id!=$foto.id}
		<td class="delete">
			<a class="delete_{$foto.id}" href="javascript:deletePhoto({$foto.id});">Effacer</a>
		</td>
	{/if}
	{/foreach}
</tr>

<tr>
	<td class="tprincipale"></td>
	
		<td class="delete">
			1
		</td>
		<td class="delete">
			2
		</td>
		<td class="delete">
			3
		</td>
		<td class="delete">
			4
		</td>
		<td class="delete">
			5
		</td>
	
	
</tr>



</table>



<form  method="post" enctype="multipart/form-data" action="">
<div class="hidden principal">
<p ><input type="file" name="userfile" ></p>
<p><input type="submit" name="modify" value="Modifier"></p>
</div>
</form>




<form class="photos" method="post" enctype="multipart/form-data" action="">
Ajouter photo 1 : <input type="file" name="userfile[]" > <input  class="valid" type="submit" name="valid" value="Ajouter"><br />
Ajouter photo 2 : <input type="file" name="userfile[]" ><br />
Ajouter photo 3 : <input type="file" name="userfile[]" ><br />
Ajouter photo 4 : <input type="file" name="userfile[]" ><br />
Ajouter photo 5 : <input type="file" name="userfile[]" class="last"><br />

<input type="submit" value="." name="valid_fotos" class="enregistrer">

</form>
<br />
<br />

</div>

